//
//  Person.h
//  链式编程和函数编程
//
//  Created by 383Mac on 2017/9/29.
//  Copyright © 2017年 383Mac. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Fouction : NSObject



/**
 传统写法
 */
-(void)dosomething;
-(void)working;




/**
 链式编程方法
 @return 返回当前对象
 */
-(Fouction *)dosomething2;
-(Fouction *)working2;


/**
 函数式编程
 */

-(Fouction *(^)(void))dosomething3;
-(Fouction *(^)(void))working3;



/**
  函数式编程 无参数
 */
-(Fouction *(^)(NSString *str))dosomething4;
-(Fouction *(^)(NSString * str))working4;


@end
